package com.rionosoft.demo.view;

import com.rionosoft.demo.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class SplashFromFirstActivity extends Activity {

	private final int SPLASH_DISPLAY_LENGHT = 1000;

	private Runnable mRunnable = new Runnable() {
		@Override
		public void run() {
			Intent mainIntent = new Intent(SplashFromFirstActivity.this,
					SplashSecondActivity.class);
			SplashFromFirstActivity.this.startActivity(mainIntent);
			SplashFromFirstActivity.this.finish();
		}
	};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash_from_first);
		new Handler().postDelayed(mRunnable, SPLASH_DISPLAY_LENGHT);
	}

}
